package com.ctshk.rpc.cms.mapper;

import com.ctshk.rpc.cms.entity.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 公告管理 Mapper 接口
 * </p>
 *
 * @author LiZhiming
 * @since 2021-04-23
 */
public interface NoticeMapper extends BaseMapper<Notice> {
    @Update("update t_notice set status = #{status} where id=#{id}")
    int updateStatusById(@Param("id")Long id, @Param("status")Integer status);
}
